package com.deyuanyun.pic.pipe.domain.exceldomain;

import com.caixu.beanvalidateutil.annotations.CodeVail;
import com.caixu.beanvalidateutil.annotations.DataValidate;
import com.deyuanyun.pic.pipe.support.validatefun.CodeValidata;
import com.deyuanyun.pic.pipe.support.validatefun.PipeLineValidata;
import com.deyuanyun.pic.pipe.support.validatefun.PipeSegmentValidata;

import java.util.Date;

/**
 * Created by xu on 2016/1/21.
 * 地面标识--对应实体类
 */
public class GroundMarkVO {
    private String code;
    @DataValidate(notNull = true,myFunction = PipeLineValidata.class,myFunctionMessage = "管道不存在")
    private String pipeLineId;//管道名称
    @DataValidate(notNull = true,myFunction = PipeSegmentValidata.class,myFunctionMessage = "管段不存在")
    private String pipeSegmentId;//管段
    //@DataValidate(notNull = true)
    private String signNumber;//标识编号
    @CodeVail(majorCode = "SIGN_TYPE")
    @DataValidate(/*notNull = true, */myFunction = CodeValidata.class,myFunctionMessage = "标识类型不正确")
    private String signType;//标识类型
    @DataValidate(notNull = true,numberRang = "{-180,180}" ,type = Number.class,typeMessage = "坐标字段必须为数字类型")
    private String laocationX;
    @DataValidate(notNull = true,numberRang = "{-90,90}" ,type = Number.class,typeMessage = "坐标字段必须为数字类型")
    private String laocationY;
    @DataValidate(notNull = true ,type = Number.class,typeMessage = "坐标字段必须为数字类型")
    private String laocationZ;
    @CodeVail(majorCode = "OBJECT_PHYSICAL_STATE_")
    @DataValidate(/*notNull = true, */myFunction = CodeValidata.class,myFunctionMessage = "标识状态不正确")
    private String signStatus;
    @CodeVail(majorCode = "REPAIR_SUGGESTED")
    @DataValidate(/*notNull = true, */myFunction = CodeValidata.class,myFunctionMessage = "修复建议不正确")
    private String repairSuggestion;
    @CodeVail(majorCode = "REPAIR_STATE_")
    @DataValidate(/*notNull = true,*/ myFunction = CodeValidata.class,myFunctionMessage = "修复状态不正确")
    private String repairstate;//修复状态

    @DataValidate(lengthLimit = "{80}")
    private String recorder;//记录人
    @DataValidate(type = Date.class,datePattern = {"yyyyMMdd","yyyy-MM-dd","yyyy/MM/dd"},typeMessage = "yyyyMMdd日期格式有误")
    private String recordtime;//记录时间
    @DataValidate(lengthLimit = "{999}")
    private String createRemark;//备注


    private String priUuid;

    public String getPipeLineId() {
        return pipeLineId;
    }

    public void setPipeLineId(String pipeLineId) {
        this.pipeLineId = pipeLineId;
    }

    public String getPipeSegmentId() {
        return pipeSegmentId;
    }

    public void setPipeSegmentId(String pipeSegmentId) {
        this.pipeSegmentId = pipeSegmentId;
    }

    public String getSignNumber() {
        return signNumber;
    }

    public void setSignNumber(String signNumber) {
        this.signNumber = signNumber;
    }

    public String getSignType() {
        return signType;
    }

    public void setSignType(String signType) {
        this.signType = signType;
    }

    public String getSignStatus() {
        return signStatus;
    }

    public void setSignStatus(String signStatus) {
        this.signStatus = signStatus;
    }

    public String getRepairSuggestion() {
        return repairSuggestion;
    }

    public void setRepairSuggestion(String repairSuggestion) {
        this.repairSuggestion = repairSuggestion;
    }

    public String getRepairstate() {
        return repairstate;
    }

    public void setRepairstate(String repairstate) {
        this.repairstate = repairstate;
    }

    public String getRecorder() {
        return recorder;
    }

    public void setRecorder(String recorder) {
        this.recorder = recorder;
    }

    public String getRecordtime() {
        return recordtime;
    }

    public void setRecordtime(String recordtime) {
        this.recordtime = recordtime;
    }

    public String getCreateRemark() {
        return createRemark;
    }

    public void setCreateRemark(String createRemark) {
        this.createRemark = createRemark;
    }

    public String getPriUuid() {
        return priUuid;
    }

    public void setPriUuid(String priUuid) {
        this.priUuid = priUuid;
    }

    public String getLaocationX() {
        return laocationX;
    }

    public void setLaocationX(String laocationX) {
        this.laocationX = laocationX;
    }

    public String getLaocationY() {
        return laocationY;
    }

    public void setLaocationY(String laocationY) {
        this.laocationY = laocationY;
    }

    public String getLaocationZ() {
        return laocationZ;
    }

    public void setLaocationZ(String laocationZ) {
        this.laocationZ = laocationZ;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }
}
